<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<list from="$data" name="$d">
    <if value="$hd.list.d.first">
        <li style="color:#f00;">{$d.id}  {$d.title}</li>
    <else/>
        <li>{$d.id}  {$d.title}</li>
    </if>
</list>
<h3>共有:{$hd.list.d.total}篇文章</h3>
<if value="$data">
    ok
    <else/>
    no
</if>
</body>
</html>